package com.ddw.wotcg.client.threejs.math;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * http://mrdoob.github.com/three.js/docs/55/#Reference/Math/Vector3
 * 
 * @author fungus1487
 * 
 */
public final class Vector3 extends JavaScriptObject {
	
	public static native Vector3 create() /*-{
		return new $wnd.THREE.Vector3();
	}-*/;
	
	public static native Vector3 create(double x, double y, double z) /*-{
		return new $wnd.THREE.Vector3(x, y, z);
	}-*/;
	
	protected Vector3() {
	}
	
	public native double getX() /*-{
		return this.x;
	}-*/;
	
	public native double getY() /*-{
		return this.y;
	}-*/;
	
	public native double getZ() /*-{
		return this.z;
	}-*/;
	
	public native void setX(double x) /*-{
		this.x = x;
	}-*/;
	
	public native void setY(double y) /*-{
		this.y = y;
	}-*/;
	
	public native void setZ(double z) /*-{
		this.z = z;
	}-*/;
	
}
